import request from '@/utils/request';

/**
 * 查询盾构机列表
 *
 * @param deviceMac 设备号
 * @param deviceName 设备名称
 * @param pageNum
 * @param pageSize
 */
export const getShieldMachineList = (params: any) => request({
    url: '/system/shieldDevice/list',
    method: 'get',
    params,
});

/**
 * 添加盾构机
 */
export const addShieldMachine = (data: any) => request({
    url: '/system/shieldDevice',
    method: 'post',
    data,
});

/**
 * 修改盾构机
 */
export const modifyShieldMachine = (data: any) => request({
    url: '/system/shieldDevice',
    method: 'put',
    data,
});

/**
 * 删除盾构机
 */
export const deleteShieldMachine = (id: any) => request({
    url: `/system/shieldDevice/${id}`,
    method: 'delete',
});

/**
 * 查询盾构机导向参数（非双护盾）列表
 *
 * @param shieldId
 * @param pageNum
 * @param pageSize
 */
export const getShieldGuidanceParametersList = (params: any) => request({
    url: '/system/shieldGuidanceParameters/list',
    method: 'get',
    params,
});
